package homework;

public class Test {
    public static void main(String[] args) {
        String s = "aa bb cc dd ee gg";
        String[] str = s.split(" ");
        for (int i = 0; i < str.length; i++) {
            System.out.println(str[i]);
        }
    }
}
